package com.hmkj.core.service.index.impl;

import com.hmkj.common.baseMapper.GenericMapper;
import com.hmkj.core.mapper.index.EquityRecommendMapper;
import com.hmkj.core.po.index.EquityRecommend;
import com.hmkj.core.service.index.EquityRecommendService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 首页动态业务相关Service接口实现<br>
 *
 * @ClassName: EquityRecommendServiceImpl
 * @author eproo
 * @date   2018-07-09 02:02:41
 */
@Service
@Scope("prototype")
@Transactional(rollbackFor = Exception.class)
public class EquityRecommendServiceImpl implements EquityRecommendService {

	@Resource
    private EquityRecommendMapper equityRecommendMapper;

    @Override
    public GenericMapper<EquityRecommend,Integer> _getMapper() {
        return equityRecommendMapper;
    }

    @Override
    public List<EquityRecommend> selectRecommend() {
       return equityRecommendMapper.selectRecommend(EquityRecommend.TODAYRECOMMEND.T1.code);
    }
}
